// 1.引入mongoose
let mongoose = require('mongoose')
// 2.连接数据库
let DB =mongoose.connect('mongodb://localhost/huohua228cui')
DB.then(()=>{
    console.log('连接数据库成功')
},()=>{
    console.log('连接数据库失败')
})